﻿@{
    ViewBag.Title = "DocQueryList";
    Layout = "~/Views/Shared/_Layout.cshtml";
    string docClsName = ViewData["docClsName"] == null ? "查找结果" : ViewData["docClsName"].ToString();
    string navi = "当前位置：首页 > "+@docClsName;
}
@using ElingOA6_DSJCJ.Models;
@using Webdiyer.WebControls.Mvc
@model PagedList<ElingOA6_DSJCJ.Models.DocumentGridModel>
        
        <div class="list_content">
        <div class="lc_t"><h3> 查找结果</h3><span><a href="@Url.Action("Index","Index")">首页</a> &gt; <a href="#">查找结果</a></span></div>
        <ul class="lc_c">
         @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
         {
              <li><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank">@documentModel.FTitle</a><span class="sr">@documentModel.FPubDate.ToString("yyyy-MM-dd")</span></li>
         }
           </ul>
                         <div class="clear"></div>
                   <div class="manu">   <table width="100%" cellspacing="0" cellpadding="0" height="35">
                   <tr>
                            <td style=" padding:0 20px;">
                                <span style="float: left; display:block;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                                <span style="float:right; display:block;">
                                @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
                                </span>
                            </td>
                        </tr>
                    </table>
                  </div>
                  </div>
@*<div class="main">
    <div class="list-main">
        <div class="paging-title"><span>@navi</span><h3>@docClsName</h3></div>
        <div class="paging-content2">
            <ul>
                @foreach (DocumentGridModel documentModel in Model as List<DocumentGridModel>)
                {
                    <li><a href="/Index/DocView?docId=@documentModel.FDocId" target="_blank">@documentModel.FTitle</a><span class="sr">@documentModel.FPubDate.ToString("yyyy-MM-dd")</span></li>
                }
                <div class="clear"></div>
            </ul>
            <div class="clear"></div>
            <table width="100%" cellspacing="0" cellpadding="0" height="35">
                <tr>
                    <td>
                        <span style="float: left; width: 50%;">共 @Model.TotalItemCount 条记录，页 @Model.CurrentPageIndex/@Model.TotalPageCount</span>
                        @Html.Pager(Model, new PagerOptions { ContainerTagName = "span", PageIndexParameterName = "id", AlwaysShowFirstLastPageNumber = true, HorizontalAlign = "right", FirstPageText = "首页", LastPageText = "末页" }, new { style = "" })
                    </td>
                </tr>
            </table>
        </div>
    </div>
</div> *@          
